﻿using System;
using System.Collections.Generic;
using System.Text;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json;

namespace ACSynologyHelper
{
    public static class SynologyResultFileStationException
    {
        /// <summary>
        /// 获取FileStation信息
        /// </summary>
        public static FileStationInfo GetFileStationInfo(this SynologyResult synologyResult)
        {
            if (synologyResult.data == null) { return null; }
            return synologyResult.data.ToObject<FileStationInfo>();
        }
    }
}
